
app.controller('homeCtrl',['$scope','$http','$timeout',function($scope,$http,$timeout){
	$scope.data = null;
	$http.get('http://h5.yztctech.net/api/axf/apihome.php')
	.success(function(req){
		$scope.data = req.data;
	});
	
	
//	热卖
	$scope.data = null;
	$http.get('http://h5.yztctech.net/api/axf/apihomehot.php')
	.success(function(req){
		$scope.shop = req.data;
//		if(new Data()-time<1000){//加载页面
//			$timeout(function(){
//				lodaing.status=false;//默认为display:none;false值为展示
//			},1000)							
//		}else{
//			lodaing.status=false;
//		}
	});

}])